package wzq.org.sample_ndk;

import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    TextView tv1 = (TextView) findViewById(R.id.tv_text1);

    int v1 = 3, v2 = 5;
    SampleNdk ndk = new SampleNdk();
    int rv = ndk.add(v1, v2);
    tv1.setText(v1 + "+" + v2 + "=" + rv);
  }
}
